/**   
 * Copyright © 2017 Fan_繁. All rights reserved.
 * 
 * @Title: BaseHanlderController.java 
 * @Prject: anger
 * @Package: com.hzt.anger.controller 
 * @Description: TODO
 * @author: ChuanHui   
 * @date: 2017年8月5日 下午9:18:04 
 * @version: V1.0   
 */
package com.hzt.anger.controller;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

/**
 * @ClassName: BaseHanlderController
 * @Description: TODO
 * @author: ChuanHui
 * @date: 2017年8月5日 下午9:18:04
 */
@Controller
public class BaseHanlderController {

	private int currentPage = 1;

	private Map<String, Object> baseMap = new HashMap<>();

	/**
	 * @return the currentPage
	 */
	public int getCurrentPage() {
		return currentPage;
	}

	/**
	 * @param currentPage
	 *            the currentPage to set
	 */
	public void setCurrentPage(String currentPage) {
		this.currentPage = Integer.valueOf(currentPage);
	}

	/*@InitBinder
	public void initBinder(WebDataBinder binder) {

		binder.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"), true));
		binder.registerCustomEditor(int.class, new IntEditor());
		binder.registerCustomEditor(long.class, new LongEditor());
		binder.registerCustomEditor(double.class, new DoubleEditor());
		binder.registerCustomEditor(float.class, new FloatEditor());
	}*/
}
